<div ng-controller="LuckydrawCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'抽奖'| translate}}</li>
        <li>{{'List'|translate}}
            <a href="#/luckydraw/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"> 
          
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'id'|translate}}</th>
                <th>{{'活动名称'|translate}}</th>
                <th>{{'竞猜数字'|translate}}</th>
                <th>{{'抽奖次数'|translate}}</th>
                <th>{{'剩余时间'|translate}}</th>
                <th>{{'备注'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in draw_list">
                <td>{{list.draw_id}}</td>
                <td>{{list.name}}</td>
                <td>{{list.guess_number}}</td>
                <td>{{list.lottery_number}}</td>
                <td>{{list.diff_time?list.diff_time:'已结束'}}</td>
                <td>{{list.remark}}</td>
                <td>
                    <!-- <a ng-click="luckydrawPause(list.draw_id)" class="sui-btn btn-danger" ng-if="list.diff_time">{{'暂停'|translate}}</a> -->
                    <a href="#/luckydraw/add?draw_id={{list.draw_id}}" class="sui-btn btn-primary"> {{'edit'|translate}} </a>

                    <a href="#/luckydraw/detail?draw_id={{list.draw_id}}" class="sui-btn btn-primary"> {{'详情'|translate}} </a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="draw_total" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>